package com.dit.action.customer;

import org.springframework.beans.factory.annotation.Autowired;

import com.dit.action.AbstractAction;
import com.dit.entity.Sme;
import com.dit.service.SmeService;

public class ViewSmeDetailsAction extends AbstractAction{
	
	@Autowired
	private SmeService	smeService;
	
	private String id;
	
	private Sme sme;
	
	public String execute() {
				
		sme = smeService.getDetailsById(id);
			
		return SUCCESS;
		
	}

	public Sme getSme() {
		return sme;
	}

	public void setSme(Sme sme) {
		this.sme = sme;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

}
